
/*
 * Copyright 2008 Friendster Inc.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
 
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace Friendster.Web.Configuration
{
    /// <summary>
    /// This class provide application settings information.
    /// This is created as a wrapper to provide flexibility facebook app developers.
    /// </summary>
    public sealed class FriendsterApplicationSettings
    {
        //Fields
        private string _apiKey;
        private string _secret;
        private string _name;

        // Methods
        /// <summary>
        /// Constructor. Sets the private variable for internal class uses.
        /// </summary>
        public FriendsterApplicationSettings()
        {
            this._apiKey = ConfigurationManager.AppSettings["APIKey"].ToString();
            this._name = ConfigurationManager.AppSettings["Name"].ToString();
            this._secret = ConfigurationManager.AppSettings["Secret"].ToString();
        }

        // Properties
        /// <summary>
        /// Returns API key of the current application.
        /// </summary>
        public string ApiKey 
        {
            get
            {
                return this._apiKey;
            }
            set
            {
                this._apiKey = value;
            }
        }
        /// <summary>
        /// Returns Name of the current application.
        /// </summary>
        public string Name 
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }
        /// <summary>
        /// Returns the Secret key of current application.
        /// </summary>
        public string Secret 
        {
            get
            {
                return this._secret;
            }
            set 
            {
                this._secret = value;
            }
        }
    
       
    }


}
